fcacee79e7892dae4cc34828dbb953a2a2035d50,platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/LocalFileSystemImpl.java,WatchRequestImpl,WatchRequestImpl,#String#boolean#,58
Before Change
File rootFile = new File(FileUtil.toSystemDependentName(rootPath));
if (index > 0 || !rootFile.isDirectory()) {
rootFile = rootFile.getParentFile();
assert rootFile != null : rootPath;
}
After Change
File rootFile = new File(FileUtil.toSystemDependentName(rootPath));
if (index > 0 || !rootFile.isDirectory()) {
final File parentFile = rootFile.getParentFile();
if (parentFile == null) {
throw new FileNotFoundException(rootPath);
}
rootFile = parentFile;
}